var mockData = require('../../../data/populardata.js');


Page({
  data:{},
  onLoad:function(options){
    console.log(options.rid);
    let productObj = mockData.productlists[options.rid];
    this.setData({ productlists:productObj });
  },
  onReady:function(){
    // 页面渲染完成
  },
  onShow:function(){
    // 页面显示
  },
  onHide:function(){
    // 页面隐藏
  },
  onUnload:function(){
    // 页面关闭
  },
  onShareAppMessage() {return { title: '厨星宝电器', imageUrl: '/image/厨星宝电器.jpg', path: 'page/component/index' }}
})